
const bus={
    state: {
       isBubble:false,
    },
    mutations: {

        updateBubble: (state,payload_switch)=>{
            state.isBubble=payload_switch;
        }

    },

    /*  action会调用mutations里面的方法对state进行修改*/
    actions: {
        BUBBLE_SWITCH:({commit},payload)=>{
            commit("updateBubble",payload);
        }

    }
}
export default bus;
